package com.example.student_blocket;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import android.app.Activity;
import android.content.Intent;

public class RegisterActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_register);
		
		rp_regbutton();
	}

	private void rp_regbutton() {
		Button rp_regbutton = (Button) findViewById(R.id.rp_btn_reg);
		View.OnClickListener myLinstener = new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(RegisterActivity.this, "You are registered", Toast.LENGTH_LONG).show();
				
				startActivity(new Intent(RegisterActivity.this,MainActivity.class));
				
			}
		};
		rp_regbutton.setOnClickListener(myLinstener);
		
	}

	

}
